package com.kj.misc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
public class MiscApplication {

	public static void main(String[] args) {
		
		/*
		ByteBuf bb = Unpooled.buffer();
		bb.writeByte(0x44);
		bb.writeByte(0xDD);
		bb.writeByte(0xAC);
		bb.writeByte(0x7A);

		System.out.println(bb.isReadable(5));
		System.out.println(bb.readFloat());
		//System.out.println(bb.readFloatLE());
		*/
		
		/*
		long v = Long.parseLong("00000039412524E1", 16);
		System.out.println("value is " + v);
		
		long val = v;
		long v1 = val >> 16;
		double v2 = (double)(val & 0xFFFF) /  65536;
		
		System.out.println("result is " + (v1 + v2));
		*/
		
		
		SpringApplication.run(MiscApplication.class, args);
		
		
	}
}
